package com.agileboot.domain.airport.inspectionCheck.db;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Set;

@Service
public class SirInspectionCheckServiceImpl extends ServiceImpl<SirInspectionCheckMapper, SirInspectionCheckEntity>
        implements SirInspectionCheckService {


    @Override
    public List<SirInspectionCheckEntity> getByInspectionIds(List<Long> inspectionIds) {
        if (inspectionIds == null || inspectionIds.isEmpty()) {
            return Collections.emptyList();
        }
        return this.lambdaQuery()
                .in(SirInspectionCheckEntity::getInspectionId, inspectionIds)
                .list();
    }


    @Override
    public List<SirInspectionCheckEntity> getByIds(Set<Long> inspectionCheckIds) {
        if (inspectionCheckIds == null || inspectionCheckIds.isEmpty()) {
            return Collections.emptyList();
        }
        return this.lambdaQuery()
                .in(SirInspectionCheckEntity::getInspectionCheckId, inspectionCheckIds)
                .list();
    }
}
